home *** CD-ROM | disk | FTP | other *** search
- /* Romsavat writes the AT rom to a file called
- atrom. Must be compliled with the large model
- option.
- */
- #include <stdio.h>
- #include <stdlib.h>
- main()
- {
- FILE *stream;
- unsigned int c;
- long x;
- char *d;
- /* starting address of at rom in seg:offset fmt */
- d = 0xf0000000;
- /* size of at rom */
- x = 0x10000;
- /* open the file in binary mode! */
- stream = fopen("atrom","wb");
- while (x > 0)
- {
- c = *d;
- putc(c,stream);
- *d++;
- x--;
- }
- fclose(stream);
- }
-
-
-
-
-